Testing for a Conformance Relation Based on Acceptance

نویسندگان

  • Ming Yu Yao
  • Gregor von Bochmann
چکیده

Although the object-oriented paradigm has been gaining wide popularity in recent years, little work has been done on how to test objectoriented software systems. We believe that many special programming features found in the object-oriented paradigm will also play important roles during the testing phase. In this paper, we propose a conformance testing method for object-oriented software systems. The conformance relation that can be tested by this method is based on a modified version of the acceptance tree model and takes into account the special requirements imposed by the inheritance mechanism -which we believe is the most important feature provided by the object-oriented paradigm. The proposed method allows us to test, under certain assumptions, whether an object instance implementation conforms to a given class specification by applying to the implementation the test cases derived from the given class specification. 1 I n t r o d u c t i o n With the increasing complexity of software systems, stepwise refinement is becoming an important methodology for software development. The stepwise refinement approach starts from a formal specification of the functionality of the system on a high level of abstraction. This abstract initial specification is then transformed in a number of successive refinement or implementation steps, where each step produces a new specification reflecting certain design decisions. The transformation process terminates when a physical realization of the system is obtained. With such an approach, implementation and specification only have relative meanings. A refinement produced in an intermediate step is an implementation of the refinement in the previous step, while it also serves as a specification for the refinement in the next step. The stepwise development process must be such that the final realization, as well as the intermediate refinements, conform to the initial specification. Certainly, some criterion should be designated beforehand for specifying the meaning and conditions of "conform". Actually, there have been many criteria proposed for defining possible conformance relationships, such as trace preorder, reduction, extension and conformance of [5, 6, 7],failure of [9, 10], and failure trace and generalized failure of [12]. These relations have been proposed largely for conformance testing of distributed systems, particularly of communication protocols. * This research was supported by a grant from the Canadian Institute for Telecommunications Research under the NCE program of the Government of Canada.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Testing of Concurrent Programs Based on Message Sequence Charts

Most prior work on specification-based testing of concurrent programs have postulated an equivalence relation between specifications and programs. However, the equivalence relation, which requires a specification and a program to encompass the same set of synchronization sequences, is not well-suited for testing concurrent programs against partial and nondeterministic specifications. In this pa...

متن کامل

Input-Output Conformance Simulation (iocos) for Model Based Testing

A new model based testing theory built on simulation semantics is presented. At the core of this theory there is an input-output conformance simulation relation (iocos). As a branching semantics iocos can naturally distinguish the context of local choices. We show iocos to be a finer relation than the classic ioco conformance relation. It turns out that iocos is a transitive relation and theref...

متن کامل

Specification Coverage Aided Test Selection

In this paper test selection strategies in formal conformance testing are considered. As the testing conformance relation we use the ioco relation, and extend the previously presented on-the-fly test generation algorithms for ioco to include test selection heuristic based on a specification coverage metric. The proposed method combines a greedy test selection with randomization to guarantee com...

متن کامل

Work-in-progress Assume-guarantee reasoning with ioco

This paper presents a combination between the assume-guarantee paradigm and the testing relation ioco. The assume-guarantee paradigm is a ”divide and conquer” technique that decomposes the verification of a system into smaller tasks that involve the verification of its components. The principal aspect of assume-guarantee reasoning is to consider each component separately, while taking into acco...

متن کامل

Hybrid Input-Output Conformance and Test Generation

Input-output conformance test theory for discrete systems has established itself in research and industry already. A couple of years ago also input-output conformance test theories for timed systems were defined. The next step is to develop conformance test theory for hybrid systems as well. In this report we present a conformance relation for model-based testing of hybrid systems and we formal...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1993